export interface StationProp {
  stcd?:string;
  stnm?:string;
}

/**
 * 查询 分页，过滤
 */
export function queryStationList(){
  return new Promise((resolve,reject)=>{
    return resolve([]);
  })
}

/**
 * 保存，有 stcd 则为 新增，否则修改
 * @param station
 */
export function saveStation(station:StationProp):Promise<void>{
  if(station.stcd){
    return new Promise((resolve,reject)=>{
      return resolve();
    })
  }
  return new Promise((resolve,reject)=>{
    return resolve();
  })
}

/**
 * 根据 stcd 查询单条记录
 * @param stcd
 */
export function queryStationInfo(stcd:string){
  return new Promise((resolve,reject)=>{
    return resolve({});
  })
}


/**
 * 删除测站
 * @param stcd
 */
export function deleteStation(stcd:string){
  return new Promise((resolve,reject)=>{
    return resolve({});
  })
}
